import { createRouter, createWebHashHistory } from 'vue-router'

const routes = []
const router = createRouter({
  routes: [
    {
      path: '/',
      redirect: '/homePage',
      component: () => import('@/layout/index.vue'),
      children: [
        {
          path: 'homePage',
          name: 'homePage',
          meta: { title: '首页' },
          component: () => import('@/views/homePage/index.vue')
        }
      ]
    }
  ],
  history: createWebHashHistory()
})

export default router
